package com.yulongtian.offers.day202208.day20220825;

/**
 * https://leetcode.cn/problems/ti-huan-kong-ge-lcof/
 * @author YulongTian
 * @date 2022/8/25 - 14:06
 */
public class Test01 {
    public static void main(String[] args) {

    }
    public String replaceSpace(String s) {
        StringBuilder res=new StringBuilder();
        for(int i=0;i<s.length();i++){
            if(s.charAt(i)==' '){
                res.append("%20");
                continue;
            }
            res.append(s.charAt(i));
        }
        return res.toString();
    }



}
